package com.delos.rbac.controller;

import com.delos.rbac.service.IRegisterService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 注册账号
 *
 * @author zouyaowen
 * @date 2020-07-05
 */
@Slf4j
@RestController
@RequestMapping("/register")
public class RegisterController {

    @Autowired
    private IRegisterService registerService;

    @PostMapping("/browser")
    public void browserRegister(String userName, String password) {
        registerService.browserRegister(userName, password);
    }
}
